package com.task.manage.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.task.manage.common.annotation.Excel;
import com.task.manage.common.core.domain.BaseEntity;

/**
 * 人员信息对象 personnel_data
 *
 * @author ruoyi
 * @date 2024-05-10
 */
public class PersonnelData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 这里特指sys_user表的客服角色的用户id
     */
    private Long userId;

    /**
     * 收货人员
     */
    @Excel(name = "收货人员")
    private String personName;

    /**
     * 收货人员电话
     */
    @Excel(name = "收货人员电话")
    private String personTele;


    @Excel(name = "人员状态", readConverterExp = "0=正常,1=停用")
    private Integer status;

    /**
     * 收货人微信号码
     */
    @Excel(name = "收货人微信号码")
    private String personWeixin;

    /**
     * 收货地址
     */
    @Excel(name = "收货地址")
    private String address;

    /**
     * 客服(管理人员)
     */
    private String userName;

    /**
     * 人员任务数量限制
     */
    private Integer taskLimit;

    /**
     * 权限限制查询
     */
    private String queryAllFlag;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonTele(String personTele) {
        this.personTele = personTele;
    }

    public String getPersonTele() {
        return personTele;
    }

    public void setPersonWeixin(String personWeixin) {
        this.personWeixin = personWeixin;
    }

    public String getPersonWeixin() {
        return personWeixin;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTaskLimit() {
        return taskLimit;
    }

    public void setTaskLimit(Integer taskLimit) {
        this.taskLimit = taskLimit;
    }

    public String getQueryAllFlag() {
        return queryAllFlag;
    }

    public void setQueryAllFlag(String queryAllFlag) {
        this.queryAllFlag = queryAllFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("personName", getPersonName())
                .append("personTele", getPersonTele())
                .append("personWeixin", getPersonWeixin())
                .append("address", getAddress())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
